//
//  ZTEWatermarkView.h
//  Watermark
//
//  Created by 万伟琦 on 2018/8/2.
//  Copyright © 2018年 万伟琦. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol ZODWatermarkDisplayStyleDataSource;

@interface ZODWatermarkView : UIView

@property (nonatomic, copy)     NSString*   markTitle;
@property (nonatomic, strong)   UIColor*    markColor;
@property (nonatomic, strong)   UIFont*     markFont;

/**
 该水印 view 和其 subviews 是否能响应用户事件
 */
@property (nonatomic, assign)   BOOL        canRespond;

@property (nonatomic, weak)     id<ZODWatermarkDisplayStyleDataSource> displayStyleDataSource;

- (instancetype)initWithFrame:(CGRect)frame
                    markTitle:(NSString *)markTitle
                     markFont:(nullable UIFont *)markFont
                    markColor:(nullable UIColor *)markColor
                      respond:(BOOL)canRespond;

@end

@protocol ZODWatermarkDisplayStyleDataSource <NSObject>
@optional
//水印文字水平间距
- (CGFloat)zod_horizontalSpaceInWatermarkView:(ZODWatermarkView *)watermarkView;
//水印文字垂直间距
- (CGFloat)zod_verticalSpaceInWatermarkView:(ZODWatermarkView *)watermarkView;
//水印文字倾斜角度
- (CGFloat)zod_rotationAngleInWatermarkView:(ZODWatermarkView *)watermarkView;

@end

NS_ASSUME_NONNULL_END
